
public class MaxStats {
	
	String playerName, gradClass, team, division, region, height, weight;
	int playerID, jersey, gamesPlayed, minutesPlayed;
	double ppg, rpg, apg, bpg, spg, offrpg, defrpg;
	int offReb, defReb, totReb, assists, steals, blocks, turnovers, fouls, techs, charges, points, deflections;
	int fgmade, fgattempted, twosmade, twosattempted, threesmade, threesattempted, ftmade, ftattempted;
	double fgper, twosper, threesper, ftper, winPer;
	int highPoints;
	
	public void playerName(String i){ playerName = (i.contains(",")) ? i.replace(",", "") : i; }
	public void gradClass(String i){ gradClass = i; }
	public void team(String i){ team = i; }
	public void division(String i){ division = i; }
	public void region(String i){ region = i; }
	public void winPer(double i){ winPer = i; }
	public void height(String i){ height = i; }
	public void weight(String i){ weight = i; }
	public void playerID(int i){ playerID = i; }
	public void jersey(int i){ jersey = i; }
	public void gamesPlayed(int i){ gamesPlayed = i; }
	public void minutesPlayed(int i){ minutesPlayed = i; }
	public void ppg(double i){ ppg = i; }
	public void rpg(double i){ rpg = i; }
	public void offrpg(double i){ offrpg = i; }
	public void defrpg(double i){ defrpg = i; }
	public void bpg(double i){ bpg = i; }
	public void apg(double i){ apg = i; }
	public void spg(double i){ spg = i; }
	public void deflections(int i){ deflections = i; }
	public void offReb(int i){ offReb = i; }
	public void defReb(int i){ defReb = i; }
	public void totReb(int i){ totReb = i; }
	public void assists(int i){ assists = i; }
	public void steals(int i){ steals = i; }
	public void blocks(int i){ blocks = i; }
	public void turnovers(int i){ turnovers = i; }
	public void fouls(int i){ fouls = i; }
	public void techs(int i){ techs = i; }
	public void charges(int i){ charges = i; }
	public void fgmade(int i){ fgmade = i; }
	public void fgattempted(int i){ fgattempted = i; }
	public void fgper(double i){ fgper = i; }
	public void threesmade(int i){ threesmade = i; }
	public void threesattempted(int i){ threesattempted = i; }
	public void threesper(double i){ threesper = i; }
	public void twosmade(int i){ twosmade = i; }
	public void twosattempted(int i){ twosattempted = i; }
	public void twosper(double i){ twosper = i; }
	public void ftmade(int i){ ftmade = i; }
	public void ftattempted(int i){ ftattempted = i; }
	public void ftper(double i){ ftper = i; }
	public void points(int i){ points = i; }
	public void highPoints(int i){ highPoints = i; }
	
	public String toString(){
		String player = playerName + " (" + playerID + ")\n  ";
		player += "Games played:\t" + gamesPlayed + " (" + minutesPlayed + " minutes)\n";
		player += "  PPG:\t" + ppg + " RPG:\t" + rpg + " APG:\t" + apg;
		return player;
	}
	
	public int getJersey(){
		return jersey;
	}
	
	public String csv(boolean includeTeamDiv){
		String player = "";
		player += (includeTeamDiv) ? team + ", " + winPer + ", " + division + ", ": "";
		player += jersey + ", " + playerName + ", " + gradClass + ", " + height + ", " + weight + 
				  ", " + gamesPlayed + ", " + ppg + ", " + points + ", " + fgmade + ", " + 
				  fgattempted + ", " + fgper + ", " + twosmade + ", " + twosattempted + ", " + 
				  twosper + ", " + threesmade + ", " + threesattempted + ", " + threesper + ", " +
				  ftmade + ", " + ftattempted + ", " + ftper + ", " + assists + ", " + apg + 
				  ", " + blocks + ", " + bpg + ", " + offReb + ", " + defReb + ", " + totReb + 
				  ", " + rpg + ", " + steals + ", " + spg + ", " + deflections + ", " + 
				  turnovers + ", " + fouls + ", " + techs + ", " + charges;
		return player;
	}
}
